<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>登录表单</h1>

<block th:fragment="loginForm">
    <form action="/login" method="get">
        用户名：<input type="text" name="username"/><br>
        密&nbsp;码：<input type="text" name="password"/><br>
        <input type="submit" value="登录">
    </form>
</block>

</body>
</html>